package com.zjitc.service.imp;

import com.zjitc.dao.ExpressDao;

import com.zjitc.pojo.Express;
import com.zjitc.service.ExpressService;
import com.zjitc.utils.Utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create By IntelliJ IDEA
 *
 * @author: myq
 * @create-Time: 2017/12/8  14:45
 */
@Service
public class ExpressServiceImpl implements ExpressService {

    @Autowired
    private ExpressDao dao;

    @Override
    public void add(String oid) {
        String code = Utils.code();
        dao.add(code,oid);
    }

    @Override
    public Express check(String oid) {
        return dao.check(oid);
    }

    @Override
    public void shipments(String oid) {
        dao.delivery(oid);
    }
}
